package com.dgw.springbootandshiro.service;



import com.dgw.springbootandshiro.dao.PermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Set;

@Service
public class PermissionServiceImpl implements PermissionService{

    @Autowired
    private PermissionMapper permissionDAO;

    @Override
    @Transactional
    public Set<String> queryAllPermissionByUsername(String username) {
        long t1 = System.currentTimeMillis();
        permissionDAO.queryAllPermissionByUsername(username);
        System.out.println(System.currentTimeMillis()-t1);
        return permissionDAO.queryAllPermissionByUsername(username);
    }
}
